{% extends "CommonUserBundle::layout.html.twig" %}

{% trans_default_domain 'FOSUserBundle' %}

{% block stylesheets %}
    {{ parent() }}
{% endblock %}

{% block fos_user_content %}

    <div class="container well form_userBundle">
        {% if error %}
            <div class="alert alert-error alert-small" >
                <a class="close" data-dismiss="alert" href="#">x</a>
                {{ error|trans }}
            </div>

        {% endif %}
        <form action="{{ path("fos_user_security_check") }}" method="post">
            <div>
                <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
                <div class="form-group">
                    <label class="control-label" for="username">{{ 'security.login.username'|trans }}</label>
                    <input type="text" id="username" name="_username" value="{{ last_username }}" class="form-control" required="required" />
                </div>
                <div class="form-group">
                    <label class="control-label" for="password">{{ 'security.login.password'|trans }}</label>
                    <input type="password" id="password" name="_password" class="form-control" required="required" />
                </div>
                <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
                <label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
                <p style="text-align:center;"><input type="submit" class="btn btn-success" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" /><br/>
                    <a style="margin-top:5px;" class="btn" href="{{path("fos_user_registration_register")}}">S'enregistrer</a>&nbsp;<a style="margin-top:5px;" class="btn btn-mini" href="">Mot de passe oublié</a></p>
                    <p class="text-center"><a href="{{ lien_front }}">Répondre aux QCM</a></p>
            </div>
        </form>

    </div>
{% endblock fos_user_content %}

{#{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}#}